#pragma once

#include <stdio.h>

#ifdef UTILS_LIBRARY
#define UTILS_EXPORT			__declspec(dllexport)
#else
#define UTILS_EXPORT
#endif


#ifdef __cplusplus
#define NS_UTILS_BEGIN			namespace winapiutils {
#define NS_UTILS_END			}
#define USING_NS_UTILS			using namespace winapiutils;
#else
#define NS_UTILS_BEGIN
#define NS_UTILS_END
#define USING_NS_UTILS
#endif

#ifdef UNICODE
#define lstrstr(a, b)			wcsstr(a, b)
#else
#define lstrstr(a, b)			strstr(a, b)
#endif

#define DEFINE_DEVICE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)   const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
